package com.ailesson.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.video.entity.VideoVisitorEntity;
import com.ailesson.video.model.req.VideoVisitorQueryReq;
import com.ailesson.video.model.req.VideoVisitorReq;
import com.ailesson.video.model.reply.VideoVisitorReply;

import java.util.Map;

/**
 * 视频来访者记录表
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-02 10:31:00
 */
public interface VideoVisitorService extends IService<VideoVisitorEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(VideoVisitorQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    VideoVisitorReply info(Long id);

    /**
     * 更新信息
     * @param videoVisitor
     */
    void update(VideoVisitorReq videoVisitor);

    /**
     * 新增
     * @param videoVisitor
     */
    Long add(VideoVisitorReq videoVisitor);

    Map<String, Object> queryCount(Long courseId, String startDate, String endDate);
}

